<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./jquery.min.js"></script>
    <style>
      /* .a{
            font-size: 30px;
        } */
    </style>
  </head>
  <body>
    <div id="liYunLong">你真是个天才！</div>
    <script>
      // 封装一个可以链式调用的函数，要求至少有三次链式调用，用于修改dom元素的style
      var tools = {
        $: function (dom) {
          var box = document.querySelector(dom);
          return {
            setColor: function (color) {
              box.style.color = color;
             
            },
          };
        },
      };

      tools
        .$("#liYunLong")
        .setColor("red")
        .setFontSIze("30")
        .click("你呀，总能给我整点儿花样");

    </script>
  </body>
</html>
